/**
 * ProductViewTest
 * @Chunning.Xu
 * 2011 Nov 22, 2011 9:59:36 PM
 **/
package
{
	import com.lux.product.controllers.ProductController;
	import com.lux.product.models.ProductModel;
	
	import flash.display.Sprite;
	import flash.utils.getQualifiedClassName;
	import flash.utils.getQualifiedSuperclassName;
	
	import mx.core.BitmapAsset;

	[SWF(backgroundColor=0x000000)]
	public class ProductViewTest extends Sprite
	{
		//START.
		
		[Embed(source="images/products/prd_1_1_3.png")]
		private var prdClass:Class;
		
		public function ProductViewTest()
		{
			var bitmap:BitmapAsset = new prdClass;
			var product:ProductModel = new ProductModel;
			product.image = bitmap.bitmapData;
			
			var prdCtrl:ProductController = new ProductController(product);
			this.addChild(prdCtrl.view);
		}
		
		//END
	}
}